<%@ Page Language="C#" MasterPageFile="~/admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="frmUsersPasswordEdit.aspx.cs" Inherits="admin_frmUsersPasswordEdit" title="ebeds :: Edit Password"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script language="javascript" type="text/javascript">
    
    //### Password check
    function passwordCheck(){
        if (document.getElementById("<%=txtPassword.ClientID%>").value != document.getElementById("<%=txtConfirmPassword.ClientID%>").value){
            alert('Your passwords do not match.\nYour passwords have been reset.')
            document.getElementById("<%=txtPassword.ClientID%>").value = ""
            document.getElementById("<%=txtConfirmPassword.ClientID%>").value = ""
            document.getElementById("<%=txtPassword.ClientID%>").focus()
        }
    }        
    
</script>

    <div class="headerCell">
        <asp:Label id="lblAddModify" runat="server"></asp:Label> 
    </div>
    
    <b class="spacer"></b> 
    
    <div class="contactForm1">
        
        <div id="reqContainerDiv" runat="server" visible="false">
            <div class="reqHeaderDiv">PLEASE ENTER VALUES FOR THE REQUIRED FIELDS BELOW</div>
            <div class="reqItemDiv">
                <ul class="reqList">
                    <li id="reqPassword" runat="server" style="display:none"><img src="images/bullet.png" class="bullett" alt="" title=""  />Password is required.</li>
                    <li id="reqConfirmPassword" runat="server" style="display:none"><img src="images/bullet.png" class="bullett" alt="" title=""  />Confirmed password is required.</li>                    
                </ul>                             
            </div>
        </div>        
        
        <b class="spacer"></b>                       
        
        <div class="contactFormLabel"><span class="mandatory">*</span>&nbsp;Password:</div>
        <div class="contactFormField">
            <asp:TextBox ID="txtPassword" runat="server" CssClass="textBox" TextMode="Password" onKeyUp="return SetMaxLength(this,20)"></asp:TextBox>
        </div>
        
        <b class="spacer"></b>

        <div class="contactFormLabel"><span class="mandatory">*</span>&nbsp;Confirm Password:</div>
        <div class="contactFormField">
            <asp:TextBox ID="txtConfirmPassword" runat="server" CssClass="textBox" TextMode="Password" onKeyUp="return SetMaxLength(this,20)" onblur="passwordCheck();"></asp:TextBox>
        </div>

        <b class="spacer"></b>
        
        <div class="buttons">
            <asp:ImageButton ID="btnBack" ImageUrl="images/btnBack.png" AlternateText="Go Back " runat="server" OnClick="btnBack_Click" />
            <asp:ImageButton ID="btnSave" ImageUrl="images/btnSave.png" AlternateText="Save Item " runat="server" OnClick="btnSave_Click" />
            <asp:ImageButton ID="btnClear" ImageUrl="images/btnClear.png" AlternateText="Clear Item " runat="server" OnClick="btnClear_Click" />
        </div>
                                    
    </div>

</asp:Content>

